package com.java1234.jxc.beans;

import com.java1234.jxc.core.base.BaseModel;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;


@Table("t_goodstype")
public class GoodsType extends BaseModel{


    @Column
    @Comment("编号")
    @Id
    private Integer id;
    @Column
    @Comment("类别名称")
    private String name; //
    @Column
    @Comment("类别节点类型: 1 根节点 0 叶子节点")
    private Integer state; //
    @Column
    @Comment("图标")
    private String icon; //
    @Column("p_id")
    @Comment("父菜单Id")
    private Integer pId; //

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }
}
